"use strict";
const user = {
  name: "hdsms",
  age: 12
};
// console.log(
//   JSON.stringify(Object.getOwnPropertyDescriptor(user, "name"), null, 3)
// );
// console.log(JSON.stringify(Object.getOwnPropertyDescriptors(user), null, 3));
Object.defineProperty(user, "title", {
  value: "后持人",
  writable: false,
  enumerable: true,
  configurable: false
});
user.title = "向边";
console.log(user);
console.log(user.title);
delete user.title;
console.log(user);
console.log(user.title);
